package com.yq.design.strategy;

/**
 * @ClassName Duck
 * @Description TODO
 * @Author yaoqiang
 * @Date 2021/8/26 9:59
 * @Version 1.0
 */
public abstract class Duck {
    FlyBehavior flyBehavior;

    public Duck() {
    }

    public void fly(){
        if (flyBehavior!=null){
            flyBehavior.fly();
        }
    }
}
